<?php

namespace App\Http\Controllers\Admin;

use App\Exports\CommissionExport;
use App\Exports\OrderExport;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;

class CommissionController extends Controller
{
    public function export(Request $request)
    {
        $start_time = $request->get('start_time');
        $end_time= $request->get('end_time');
        $status=$request->get('status');
        return Excel::download(new CommissionExport($start_time,$end_time,$status), 'commission.xlsx');
    }
}
